﻿<style>
    .adimg100 {
    width:100%;
    max-width:100%;
    height:auto;
}
</style>

$!body

<!-- Custom Theme JavaScript -->
<script src="/Content/js/ad.js"></script>
<!-- jQuery -->
<script src="/Content/js/jquery.min.js"></script>
<!-- compiled JavaScript -->
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>




#parse("/default/ad.htm")
#parse("/default/fx.htm")

<script>
    $(function () {
        $("iframe").each(function () {
            try{
                var obj = $(this);
                var iframe = obj[0];
                var sw = iframe.width;
                var sh = iframe.height;
                var ow = document.body.clientWidth * 0.9;
                var oh = sh * ow / sw * 0.9;

                iframe.style = "";
                iframe.width = ow;
                iframe.height = oh;

                var src = iframe.src;
                var aa = src.split('&');
                var str = '';

                for (var i = 0; i < aa.length; i++) {
                    if (aa[i].match(/width/)) {
                        aa.splice(i, 1)
                    }
                    if (aa[i].match(/height/)) {
                        aa.splice(i, 1)
                    }
                    str += (aa[i] + '&');
                }
                iframe.src = str.substring(0, str.length - 1)

            } catch (e) { }
        });    

        var ua = navigator.userAgent;
        if (ua.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)) {
            var articleImg = document.querySelectorAll('#js_content img');
            for (var i = 0; i < articleImg.length; i++) {
                var art = $(articleImg[i]);
                if (art.attr('url')) {
                    art.attr('src', art.attr('url'));
                }
            }
        }
    });
</script>